]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Reload theme on video memory purge errors
authorRui Matos <tiagomatos@gmail.com>
Fri, 3 Jun 2016 13:20:20 +0000 (15:20 +0200)
committerRui Matos <tiagomatos@gmail.com>
Tue, 28 Jun 2016 17:53:17 +0000 (19:53 +0200)
The theme machinery uses FBOs in some cases (mainly for shadows) which
need to be reloaded if we get a video memory purged error.

https://bugzilla.gnome.org/show_bug.cgi?id=739178

js/ui/main.js

index ad95ce0d446165bb4bbe95e3fc22d6615fea5a04..789dd690cf4272644d2ada0917f3ce5c7a7ed7e5 100644 (file)
@@ -191,6 +191,8 @@ function _initializeUI() {
         return true;
     });
 
+    global.display.connect('gl-video-memory-purged', loadTheme);
+
     // Provide the bus object for gnome-session to
     // initiate logouts.
     EndSessionDialog.init();